<template>
  <router-view v-slot="{ Component, route }">
    <component
      v-if="!$route.meta.keepAlive"
      :is="Component"
      :key="route.fullPath"
    />
    <transition>
      <keep-alive>
        <component
          v-if="$route.meta.keepAlive"
          :is="Component"
          :key="route.fullPath"
        />
      </keep-alive>
    </transition>
  </router-view>
</template>

<script setup>
</script>

<style lang="less">
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  height: 100%;
}
</style>
